package com.gxwz.document.business.entity;

import java.io.Serializable;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@SuppressWarnings({ "unused", "serial" })
@Entity
@Table(name="onlyLiterature")
public class OnlyLiterature  implements Serializable{
	
	@Id
	@Column(name = "onlylitId")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int onlylitId;
	
	@Column(name = "onlylitDirectory")
	private String onlylitDirectory;
	
	@Column(name = "onlylitCover")
	private String onlylitCover;
	
	@OneToOne
	@JoinColumn(referencedColumnName = "litId", name = "litId")
	private Literature literature;
	
	public int getOnlylitId() {
		return onlylitId;
	}

	public void setOnlylitId(int onlylitId) {
		this.onlylitId = onlylitId;
	}

	public String getOnlylitDirectory() {
		return onlylitDirectory;
	}

	public void setOnlylitDirectory(String onlylitDirectory) {
		this.onlylitDirectory = onlylitDirectory;
	}

	public String getOnlylitCover() {
		return onlylitCover;
	}

	public void setOnlylitCover(String onlylitCover) {
		this.onlylitCover = onlylitCover;
	}

	public Literature getLiterature() {
		return literature;
	}

	public void setLiterature(Literature literature) {
		this.literature = literature;
	}

}
